//package com.wejoy.video.middle.station.data.app;
//
//import com.pili.Hub;
//import com.qiniu.Credentials;
//import com.qiniu.processing.OperationManager;
//import com.qiniu.storage.BucketManager;
//import com.qiniu.storage.Region;
//import com.qiniu.storage.UploadManager;
//import com.qiniu.util.Auth;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * 七牛配置类
// *
// * @author admin
// */
//@Configuration
//public class QiniuConfiguration {
//    @Value("${qiniu.accessKey}")
//    private String accessKey;
//    @Value("${qiniu.secretKey}")
//    private String secretKey;
//
//    @Bean
//    public Auth getAuth() {
//        return Auth.create(accessKey, secretKey);
//    }
//
//    @Bean
//    public com.qiniu.storage.Configuration getCfg() {
//        return new com.qiniu.storage.Configuration(Region.autoRegion());
//   }
//
//    @Bean
//    public OperationManager operationMgr(@Autowired Auth auth, com.qiniu.storage.Configuration configuration) {
//        return new OperationManager(auth, configuration);
//    }
//
//    @Bean
//    public BucketManager getBucketManager(@Autowired Auth auth, @Autowired com.qiniu.storage.Configuration cfg) {
//        return new BucketManager(auth, cfg);
//    }
//
//    @Bean
//    public UploadManager getUploadManager(@Autowired com.qiniu.storage.Configuration cfg) {
//        return new UploadManager(cfg);
//    }
//}
